<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用队列</title>
</head>
<body>
<script type="module">
    import queue from './queue.js';
    import axios from './axios.js';

    queue(
        [1,2,3].map(v => () =>
            axios(`http://localhost/basicjs/promise/gaokeyong/user.php?id=${v}`).then(resoponse => {
                console.log(resoponse)
            })
        )
    );

</script>
</body>
</html>